package com.ruoyi.common.enums;

/**
 * 用户状态
 * 
 * @author ruoyi
 */
public enum OrgRistTypeEnum
{
    DAOJUE("1", "盗掘"),
    DAOQIE("2", "盗窃"),
    HUOZAI("3", "火灾"),
    FARENWEIFA("4", "法人");

    private final String code;
    private final String info;

    OrgRistTypeEnum(String code, String info)
    {
        this.code = code;
        this.info = info;
    }

    public static String getOrgRistTypeEnumByCode(String code){

        for (OrgRistTypeEnum o : OrgRistTypeEnum.values()) {
            if(o.getCode().equals(code)){
                return o.getInfo();
            }
        }
    return null;
    }
    public String getCode()
    {
        return code;
    }

    public String getInfo()
    {
        return info;
    }
}
